package com.guliguli.guliguliproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guliguli.guligulicommon.utils.PageUtils;
import com.guliguli.guliguliproduct.entity.AttrEntity;
import com.guliguli.guliguliproduct.vo.AttrGroupRelationVO;
import com.guliguli.guliguliproduct.vo.AttrRespVO;
import com.guliguli.guliguliproduct.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liuhuijie
 * @email hiliuhuijie@163.com
 * @date 2020-11-16 14:19:23
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);

    /**
     * 获取当前分组没有关联的属性
     * @param params
     * @param attrGroupId
     * @return
     */
    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrGroupId);
}

